<?php
head();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
      <meta http-equiv="Content-Language" content="pl">
      <meta name="Author" content="moozg">
      <meta name="Copyright" content="Copyright (c) 2007 by moozg">
      <meta http-equiv="Content-Type" content="text/html;">
      <title>
<?php $fc->title(); ?>
      </title>
      <LINK HREF="./css/style.css" TYPE="text/css" REL="stylesheet">
      <LINK HREF="./css/sortable.css" TYPE="text/css" REL="stylesheet">
      
      <script type="text/javascript" language="JavaScript" src="./js/prototype.js"></script>
      <script type="text/javascript" language="JavaScript" src="http://script.aculo.us/scriptaculous.js"></script>
      
      <script type="text/javascript" src="./javascript/jquery.js"></script>
      <script type="text/javascript" src="./javascript/interface.js"></script>
      <script type="text/javascript" src="./javascript/jquery.tablesorter.min.js"></script>
      
      
       <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAQm36TQQdG7jxNUwsUQtJmRR5R6xvXR_AvWJ2-2QDd3agnS3MDxS7oXrDCVJFjcWKS83vnNgxocjmDA"
        type="text/javascript"></script>
      <script type="text/javascript" language="JavaScript" src="./javascript/main.js"></script>
      <script type="text/javascript" language="JavaScript" src="./javascript/gmaps.using.js"></script>
      <script type="text/javascript" language="JavaScript" src="./javascript/jquery.using.js"></script>
      <script type="text/javascript" language="JavaScript" src="./javascript/sortable.js"></script>
      <style type="text/css">
    v\:*
    {
      behavior:url(#default#VML);
    }
      </style>
   </head>
   <body onunload="GUnload()" >
               <!--onunload="GUnload()" <td valign="top" width="241"><img src="images/news.jpg" border="2" width="241" height="43" alt=""> -->
               <!--  End of header -->
               <table class="layout" align="center"cellspacing="0" width="980" background="images/bg2.jpg">
                   <tr>
                       <td></td>
                       <td>
                      <!--     <OBJECT align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 width="780" height="240" id="header-swf" data="images/header.swf">
 <PARAM NAME=movie VALUE="images/header.swf">
 <PARAM NAME=quality VALUE=high>
 <PARAM NAME=bgcolor VALUE="#FFFFFF">
 <img alt="header" src="images/header.png" width="780" height="240" ></OBJECT>  -->
<embed src="images/header.swf" quality=high bgcolor="#FFFFFF"
width="780" height="240" align="center" NAME="header" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>
</td>
                   </tr>
                  <tr>
                     <td valign="top" width="241" height="43"><img src="images/news.jpg" border="0" width="241" height="43" alt="">
                     </td>
                     <td width="539" valign="top" rowspan="4">
                        <img src="images/text.jpg" border="0" width="539" height="40" alt=".">
                        <table class="layout"  cellspacing="0" width="689" height="100%">
                           <tr>
                              <td valign="top" width="539" bgcolor="#e6e6e6" height='100%'>
                                 <table class="layout" height="688"  cellspacing="0" >
                                    <!-- tabela main-->
                                    <tr>
                                       <td colspan="3" valign="top" height="18" ><img src="images/r_1.jpg" border="0" width="777" height="18" alt=""></td>
                                    </tr>
                                    <tr>
                                       <td valign="top" width="35" background="images/r_l3.jpg" height="100%" ><img src="images/r_l2.jpg" width="35" border="0" height="100%" alt=""></td>
                                       <td valign="top" align="left" width="688" height="100%" bgcolor="#9D9EA3"><table  valign="top" border="0" bordercolor="Red" cellpadding="0" cellspacing="0" width="688" >
                                             <tr>
                                                <td>
                                                   &#160;&#160;&#160;
                                                </td>
                                                <td valign="top">
<?php $fc->show(); ?>
                                                </td>
                                                <td>
                                                   &#160;&#160;&#160;
                                                </td>
                                             </tr>
                                          </table></td>
                                       <td  background="images/r_r4.jpg" width="53" height="100%"><img src="images/r_r3.jpg" width="53" border="0" height="100%" alt=""></td>
                                    </tr>
                                    <tr>
                                       <td colspan="3" valign="top" ><img src="images/r_2.jpg" border="0" width="777" height="14" alt=""></td>
                                    </tr>
                                    <!-- End of tabela main-->
                                 </table>
                              </td>
                           </tr>
                        </table>
                     </td>
                  </tr>
                  <tr>
                  <td valign="top" width="241" rowspan="1">
                     <table class="layout" cellspacing="0" width="241">
                           <tr>
                              <td colspan="3" valign="top" width="241"><img src="images/l_1.jpg" border="0" width="241" height="18" alt=""></td>
                           </tr>
                           <tr>
                              <td valign="top" align="right" background="images/l_l.jpg" width="29">
                              </td>
                              <td valign="top" width="188" bgcolor="#9D9EA3" height='100%'>
<?php
switch(isLoggedIn())
{
   case 0:
      include('formLogin.php');
      break;
   case 1:
      include('menuUser.php');
      break;
   case 2:
      include('menuAdmin.php');
      break;
}
?>
                              </td>
                              <td valign="top" align="left" background="images/l_r.jpg" width="24">
                              </td>
                           </tr>
                           <tr>
                              <td colspan="3" valign="top"><img src="images/l_2.jpg" border="0" width="241" height="17" alt=""></td>
                           </tr>
                     </table>
                     </td>
                  </tr>
                  <tr>
                     <td valign="top" width="241" rowspan="1"><img src="images/login.jpg" border="0" width="241" height="26" alt=".">
                     <table class="layout" cellspacing="0" width="241">
                           <tr>
                              <td colspan="3" valign="top" width="241"><img src="images/l_1.jpg" border="0" width="241" height="18" alt=""></td>
                           </tr>
                           <tr>
                              <td valign="top" align="right" background="images/l_l.jpg" width="29">
                              </td>
                              <td valign="top" width="188" bgcolor="#9D9EA3" height='100%'>
                                 <?php
                                 include('menu.php');
                                 ?>
                              </td>
                              <td valign="top" align="left" background="images/l_r.jpg" width="24">
                              </td>
                           </tr>
                           <tr>
                              <td colspan="3" valign="top">
                                 <img src="images/l_2.jpg" border="0" width="241" height="17" alt="">
                              </td>
                           </tr>
                     </table>
                     </td>
                  </tr>
                  <tr>
                     <td valign="top" align="left" background="images/bg2.jpg" width="241">
                        <table class="layout"  cellspacing="0" width="241">
                           <tr>
                              <td colspan="3" valign="top" width="241">
                              <img src="images/l_1.jpg" border="0" width="241" height="18" alt=""></td>
                           </tr>
                           <tr>
                              <td valign="top" align="right" background="images/l_l.jpg" width="29">
                              </td>
                              <td valign="top" width="188" bgcolor="#9D9EA3" height='100%'>
                                 TODO:
                                 <ul>
                                    <li>Upload obrazków <img src="images/check.gif" alt="v" height="10"></li>
                                    <li>Konto administr. <img src="images/check.gif" alt="v" height="10"></li>
                                    <li>Style CSS <img src="images/check.gif" alt="v" height="10"></li>
                                    <li>Wyszukiwanie POI<img src="images/check.gif" alt="v"  height="10"></li>
                                    <li>Eksport do KML<img src="images/check.gif" alt="v" height="10"></li>
                                    <li>Eksport do GPX<img src="images/check.gif" alt="v" height="10"></li>
                                    <li>Konta userów<img src="images/check.gif" alt="v" height="10"></li>
                                    <li>POI lista<img src="images/check.gif" alt="v" height="10"></li>
                                 </ul>
                              </td>
                              <td valign="top" align="left" background="images/l_r.jpg" width="24">
                              </td>
                           </tr>
                           <tr>
                              <td colspan="3" valign="top">
                                 <img src="images/l_2.jpg" border="0" width="241" height="17" alt="">
                              </td>
                           </tr>
                        </table>
                     </td>
                  </tr>
                  <tr>
                     <td valign="middle" colspan="3" width="780" background="images/last.jpg" height="20" align="center">
                        <span class="copy"><?php echo $foot; ?></span>
                     </td>
                  </tr>
               </table>
   </body>
</html>